package com.wsoft.dc.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wsoft.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 待办中心配置
 * </p>
 *
 * @author Z001
 * @since 2024年12月17日 16:18:10
 */
@Getter
@Setter
@TableName("dc_config")
@Schema(name = "DcConfigEntity", description = "待办中心配置")
public class DcConfigEntity extends BaseEntity {

    @Schema(description = "所属模块")
    @TableField("module_id")
    private Long moduleId;

    @Schema(description = "编码")
    @TableField("code")
    private String code;

    @Schema(description = "名称")
    @TableField("name")
    private String name;

    @Schema(description = "排序")
    @TableField("sort")
    private Integer sort;

    @Schema(description = "类型(待办、已办、待阅、已阅、督办、已发)")
    @TableField("type")
    private String type;

    @Schema(description = "接口模式（url、service）")
    @TableField("interface_type")
    private String interfaceType;

    @Schema(description = "数量接口")
    @TableField("count_interface")
    private String countInterface;

    @Schema(description = "列表接口")
    @TableField("list_interface")
    private String listInterface;

    @Schema(description = "打开方式(组件：component 路由：router  地址：url)")
    @TableField("open_type")
    private String openType;

    @Schema(description = "组件/路由 地址(带参数模版)")
    @TableField("open_page")
    private String openPage;

    @Schema(description = "是否启用")
    @TableField("is_enable")
    private Integer isEnable;

    @Schema(description = "是否待处理接口")
    @TableField("is_pending_process")
    private Integer isPendingProcess;

    @Schema(description = "图标")
    @TableField("icon")
    private String icon;
}
